<template>
  <div>
    <div
      class="CompanyList-content-item"
      @click="skipRouter({path:'/recordDetails',query:{recordId:item.recordId}})"
      v-for="(item, index) in list"
      :key="index"
    >
      <div class="title">{{item.recordName}}</div>
      <div class="newsAbsrtact">{{item.workExperience}}</div>
      <div class="tagAndTime">
        <div class="tag">
          <van-tag v-show="index<9" plain type="danger" size="medium">置顶</van-tag>
        </div>
        <div class="time"></div>
      </div>
      <!-- <van-divider /> -->
    </div>
  </div>
</template>
<script>
export default {
  name: 'companyRecordItem',
  props: {
    list: {
      type: Array,
      default() {
        return []
      },
    },
  },
  data() {
    return {
      imgUrl: config.imgUrl,
    }
  },
  methods: {
    skipRouter(routerObj) {
      this.$router.push(routerObj)
    },
  },
  mounted() {
    console.log(this.list)
  },
}
</script>
<style lang="scss">
@import '@/assets/css/base';
.CompanyList-content-item {
  margin-top: px2rem(40);
  background: #ffffff;
  box-shadow: 0 0 13px 0 rgba(18, 27, 83, 0.03);
  border-radius: 6px;
  padding: 15px 17px;
  box-sizing: border-box;
  .title {
    font-size: px2rem(38);
    color: #000000;
    line-height: px2rem(60);
    // font-weight: 400;
  }
  .newsAbsrtact {
    color: #969799;
    font-size: px2rem(32);
    line-height: px2rem(52);
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    margin-top: px2rem(10);
  }
  .tagAndTime {
    display: flex;
    justify-content: space-between;
    line-height: px2rem(40);
    .time {
      font-size: px2rem(28);
      color: #969799;
      padding-top: px2rem(24);
      padding-right: px2rem(20);
    }
  }
}
</style>